package com.project1.cmpe473;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;
import java.util.Random;


public class Company extends UnicastRemoteObject implements Approval{
	
	public int id;
	public String name;
	public String univeristy;
	public double gpa;
	public int degree; // like Bs, Ms 
	public int experience;
	public ArrayList<String> genders;
	
	public Company(int id,
				   String name,
				   String university,
				   double gpa, 
				   int degree,
				   int experience,
				   ArrayList<String> genders) throws RemoteException {
		this.id=id;
		this.name = name;
		this.univeristy = university;
		this.gpa = gpa;
		this.degree = degree;
		this.experience = experience;
		this.genders = genders;
	}	

	@Override
	public boolean getApproval(Applicant applicant) throws RemoteException {

		Random rand=new Random();
		return rand.nextDouble()<0.5;
	}

}
